﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.NuGetManagement
{
    public class PackageSourceUri
    {
        public PackageSourceUri()
        {

        }
        public PackageSourceUri(string packagename, string displayName, string packageUrl, bool isDefault = false,bool apply=false)
        {
            Name = packagename;
            DisplayName = displayName;
            PackageUrl = packageUrl;
            IsDefault = isDefault;
            Apply = apply;
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name
        {
            get;
            set;
        }
        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName
        {
            get;
            set;
        }
        /// <summary>
        /// 活动库地址
        /// </summary>
        public string PackageUrl
        {
            get;
            set;
        }
        /// <summary>
        /// 活动库默认地址
        /// </summary>
        public bool IsDefault
        {
            get;
            private set;
        }
        /// <summary>
        /// 是否应用
        /// </summary>
        public bool Apply
        {
            get;
            set;
        }
    }
}
